<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JxBrowser Gallery - 将 Chromium 融入 Java 桌面应用的艺术</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero-gradient::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: pulse 4s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }
        
        .feature-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .section-title {
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 8px;
            padding: 1rem;
            font-family: 'Consolas', 'Monaco', monospace;
            position: relative;
            overflow: hidden;
        }
        
        .code-block::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
            background-size: 200% 100%;
            animation: gradient-flow 3s linear infinite;
        }
        
        @keyframes gradient-flow {
            0% { background-position: 0% 0%; }
            100% { background-position: 200% 0%; }
        }
        
        .floating-icon {
            animation: float 3s ease-in-out infinite;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6 relative">
        <div class="max-w-6xl mx-auto relative z-10">
            <div class="text-center">
                <h1 class="text-5xl md:text-6xl font-bold mb-6 animate-fade-in">
                    JxBrowser Gallery
                </h1>
                <p class="text-xl md:text-2xl mb-8 opacity-90 max-w-3xl mx-auto">
                    将 Chromium 的强大功能无缝融入 Java 桌面应用的艺术
                </p>
                <div class="flex flex-wrap justify-center gap-4 mb-12">
                    <a href="https://github.com/TeamDev-IP/JxBrowser-Gallery/tree/master/desktop-web-app" 
                       target="_blank" 
                       class="bg-white text-purple-700 px-8 py-3 rounded-full font-semibold hover:bg-opacity-90 transition-all transform hover:scale-105 shadow-lg">
                        <i class="fab fa-github mr-2"></i>访问 GitHub
                    </a>
                    <button class="bg-transparent border-2 border-white text-white px-8 py-3 rounded-full font-semibold hover:bg-white hover:text-purple-700 transition-all">
                        <i class="fas fa-play-circle mr-2"></i>快速开始
                    </button>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="max-w-6xl mx-auto px-6 py-12">
        <!-- Introduction -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <p class="text-lg leading-relaxed text-gray-700 mb-6">
                    JxBrowser Gallery 是 TeamDev 精心打造的示例项目集，展示如何优雅地将 Chromium 浏览器功能嵌入 Java 桌面应用。
                    无论您是 Java 开发者、UI 设计师还是产品团队成员，这里都有助您快速构建现代化混合应用的灵感与实践。
                </p>
                <div class="grid md:grid-cols-2 gap-6">
                    <img src="https://github.com/TeamDev-IP/JxBrowser-Gallery/blob/master/desktop-web-app/.github/readme-resources/prefs.png?raw=true" 
                         alt="JxBrowser 界面展示" 
                         class="rounded-lg shadow-md hover:shadow-xl transition-shadow">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1753334232445-975a7440-0b43-4492-b7d1-17609cafa4a6.png" 
                         alt="应用示例" 
                         class="rounded-lg shadow-md hover:shadow-xl transition-shadow">
                </div>
            </div>
        </section>

        <!-- Problem Solution -->
        <section class="mb-16">
            <h2 class="section-title text-3xl font-bold mb-8 gradient-text">
                <i class="fas fa-puzzle-piece mr-3 floating-icon"></i>它能解决什么问题
            </h2>
            <div class="bg-gradient-to-r from-purple-50 to-pink-50 rounded-2xl p-8 border border-purple-100">
                <p class="text-lg leading-relaxed text-gray-700">
                    传统桌面应用开发中，构建动态 UI 或集成 Web 功能常需复杂框架，耗时且跨平台适配困难。
                    Web 技术（如 WebGL、WebRTC）难以直接嵌入，调试和维护成本高。
                </p>
                <p class="text-lg leading-relaxed text-gray-700 mt-4">
                    JxBrowser Gallery 通过丰富的示例展示如何用 JxBrowser 解决这些痛点，让开发流程变得简单而优雅。
                </p>
                <p class="text-xl font-semibold gradient-text mt-6">
                    <i class="fas fa-lightbulb mr-2"></i>您是否也为桌面应用的 UI 开发而头疼？
                </p>
            </div>
        </section>

        <!-- Core Features -->
        <section class="mb-16">
            <h2 class="section-title text-3xl font-bold mb-8 gradient-text">
                <i class="fas fa-star mr-3 floating-icon"></i>核心功能概述
            </h2>
            <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                <div class="feature-card rounded-xl p-6 shadow-lg">
                    <div class="text-4xl mb-4 gradient-text">
                        <i class="fas fa-cube"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">WebGL 集成</h3>
                    <p class="text-gray-600">Pomodoro 示例展示在桌面应用中嵌入 3D 模型，为用户带来震撼的视觉体验。</p>
                </div>
                
                <div class="feature-card rounded-xl p-6 shadow-lg">
                    <div class="text-4xl mb-4 gradient-text">
                        <i class="fas fa-video"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">WebRTC 支持</h3>
                    <p class="text-gray-600">屏幕共享示例实现实时视频流，完美适配协作工具开发需求。</p>
                </div>
                
                <div class="feature-card rounded-xl p-6 shadow-lg">
                    <div class="text-4xl mb-4 gradient-text">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">数据可视化</h3>
                    <p class="text-gray-600">利用 HTML/CSS/JS 快速构建交互式仪表盘，让复杂数据一目了然。</p>
                </div>
                
                <div class="feature-card rounded-xl p-6 shadow-lg">
                    <div class="text-4xl mb-4 gradient-text">
                        <i class="fas fa-layer-group"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">跨平台兼容</h3>
                    <p class="text-gray-600">支持 Swing、JavaFX、Compose 等 UI 框架，一次开发，多平台运行。</p>
                </div>
                
                <div class="feature-card rounded-xl p-6 shadow-lg">
                    <div class="text-4xl mb-4 gradient-text">
                        <i class="fas fa-file-export"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">HTML 导出</h3>
                    <p class="text-gray-600">将 Web 内容转为 PNG/PDF，轻松满足报表生成需求。</p>
                </div>
            </div>
        </section>

        <!-- Technology Architecture -->
        <section class="mb-16">
            <h2 class="section-title text-3xl font-bold mb-8 gradient-text">
                <i class="fas fa-sitemap mr-3 floating-icon"></i>技术架构概览
            </h2>
            <div class="bg-white rounded-2xl shadow-xl p-8">
                <div class="mermaid">
                    graph TD
                        A[Java 桌面应用] --> B[JxBrowser Core]
                        B --> C[Chromium Engine]
                        B --> D[UI 框架集成]
                        D --> E[Swing]
                        D --> F[JavaFX]
                        D --> G[Compose]
                        C --> H[WebGL]
                        C --> I[WebRTC]
                        C --> J[HTML/CSS/JS]
                        
                        style A fill:#667eea,stroke:#fff,stroke-width:2px,color:#fff
                        style B fill:#764ba2,stroke:#fff,stroke-width:2px,color:#fff
                        style C fill:#f093fb,stroke:#fff,stroke-width:2px,color:#fff
                </div>
            </div>
        </section>

        <!-- Use Cases -->
        <section class="mb-16">
            <h2 class="section-title text-3xl font-bold mb-8 gradient-text">
                <i class="fas fa-rocket mr-3 floating-icon"></i>使用场景
            </h2>
            <div class="grid md:grid-cols-3 gap-6">
                <div class="bg-gradient-to-br from-blue-50 to-indigo-50 rounded-xl p-6 border border-blue-100">
                    <h3 class="text-xl font-bold mb-3 text-blue-700">
                        <i class="fas fa-clock mr-2"></i>效率工具开发
                    </h3>
                    <p class="text-gray-600">用 Pomodoro 示例快速构建带 WebGL 的时间管理应用，让工作更高效。</p>
                </div>
                
                <div class="bg-gradient-to-br from-green-50 to-emerald-50 rounded-xl p-6 border border-green-100">
                    <h3 class="text-xl font-bold mb-3 text-green-700">
                        <i class="fas fa-users mr-2"></i>协作应用
                    </h3>
                    <p class="text-gray-600">通过 WebRTC 实现屏幕共享，打造专业的远程会议工具。</p>
                </div>
                
                <div class="bg-gradient-to-br from-purple-50 to-pink-50 rounded-xl p-6 border border-purple-100">
                    <h3 class="text-xl font-bold mb-3 text-purple-700">
                        <i class="fas fa-chart-bar mr-